import AC from './component/async_load'

export default [
  {
    name: '首页',
    path: '/',
    component: AC(() => import('./views/home'))
  }, {
    name: '分类列表',
    path: '/list/:id',
    component: AC(() => import('./views/home'))
  }, {
    name: '电影详情',
    path: '/detail/:id',
    component: AC(() => import('./views/detail'))
  }, {
    name: '账号注册',
    path: '/register',
    component: AC(() => import('./views/register'))
  }, {
    name: '用户',
    path: '/user',
    component: AC(() => import('./views/user'))
  }, {
    name: '基本设置',
    path: '/user/setting',
    component: AC(() => import('./views/user/setting'))
  }, {
    name: '密码修改',
    path: '/user/password',
    component: AC(() => import('./views/user/password'))
  }, {
    name: '我的评论',
    path: '/user/comments',
    component: AC(() => import('./views/user/comments'))
  }, {
    name: '我的回复',
    path: '/user/replies',
    component: AC(() => import('./views/user/replies'))
  }, {
    name: '@我的',
    path: '/user/reply-to-me',
    component: AC(() => import('./views/user/reply_to_me'))
  }, {
    name: '登陆',
    path: '/login',
    component: AC(() => import('./views/login'))
  }, {
    name: '404',
    path: '/',
    exact: false,
    component: AC(() => import('./views/404'))
  }
]